package view;

import java.io.IOException;

public class BankSystemMenu {
    public static void showMenu()
    {
        System.out.println("欢迎使用Reum银行24h自动存取款系统");
        System.out.println("----------------------------");
        System.out.println("1.开户");
        System.out.println("2.消户");
        System.out.println("3.存款");
        System.out.println("4.取款");
        System.out.println("5.转账");
        System.out.println("6.查询余额");
        System.out.println("7.退出");
        System.out.println("----------------------------");
        System.out.println("请选择");
    }
    public static void clearScreen(){
        try{
            String os =System.getProperty("os.name");
            if(os.contains("windows")){
                new ProcessBuilder("cmd","/c","cls").inheritIO().start().waitFor();

            }
            else{
                Runtime.getRuntime().exec("clear");
            }
        }catch (IOException|InterruptedException e)
        {
            e.printStackTrace();
        }
    }

}
